<template>
  <div class="order">
    <van-nav-bar title="订单页面" left-arrow @click-left="$router.back()" />
    <van-empty v-if="list.length==0" description="暂无数据" />
  </div>
</template>

<script>
import { getOrder } from "../../api/second/index";
import { ref, reactive, toRefs } from "vue";
export default {
  setup() {
    const data = reactive({
        list:[],
    })
    getOrder({ token: localStorage.getItem("token") }).then((res) => {
       if (res.code == 700){
         data.list = [];
       }
    });
    return {
        ...toRefs(data)
    }
  },
};
</script>
<style lang="scss" scoped>
</style>